﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tenebrous_Manor
{
    static class RandomizedClueLocations
    {
        static public Tuple<int, int> screwdriver;
        static public Tuple<int, int> studyKey;
        static public Tuple<int, int> studyNote;
        static public Tuple<int, int> lever;

        static Random randomNumbers = new Random((int)DateTime.Now.Ticks);

        static public void Initialize()
        {
            screwdriver = Tuple.Create(randomNumbers.Next(2 * 85, 7 * 85), randomNumbers.Next(2 * 85, 7 * 85));
            do{
                studyKey = Tuple.Create(randomNumbers.Next(1,9), randomNumbers.Next(1,9));
            } while (studyKey.Equals(Tuple.Create<int,int>(5,1)) 
                || studyKey.Equals(Tuple.Create<int,int>(6,1)) 
                || studyKey.Equals(Tuple.Create<int,int>(5,2))
                ); 
            //studyKey = GameConstants.possibleStudyKeyLocation[randomNumbers.Next(GameConstants.possibleStudyKeyLocation.Count)];
            studyNote = GameConstants.possibleStudyNoteLocation[randomNumbers.Next(GameConstants.possibleStudyNoteLocation.Count)];
            lever = GameConstants.possibleLeverLocation[randomNumbers.Next(GameConstants.possibleLeverLocation.Count)];
        }
    }
}
